package com.zy.study.utils;

public enum ResponseCode {
	//处理成功
    SUCCESS(200, "Successful"),

    //处理失败
    FAILED(500, "Failed"),

    //未登录
    NOT_LOGIN(401, "not login"),
    
    //未激活
    NOT_ACTIVED(402, "account not actived"),

    //访问拒绝
    ACCESS_DENIED(403, "Access denied"),

    //数据库错误
    DB_ERROR(503, "Error querying database"),

    //参数错误
    PARAM_PARAMETER_ERROR(501, "Parameter error"),

    //参数为空
    PARAM_PARAMETER_IS_NULL(502, "Parameter is null"),
	
	ERROR(1, "ERROR")
	;
	
	private final int code;
	private final String desc;
	public int getCode() {
		return code;
	}
	public String getDesc() {
		return desc;
	}
	private ResponseCode(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	
	
}

